<?php
class ORMpz_menu {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->parent_id)) {
      $obj->parent_id =  $args->parent_id;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    if (isset($args->is_default)) {
      $obj->is_default =  $args->is_default;
    }
    if (isset($args->appear_in_menu)) {
      $obj->appear_in_menu =  $args->appear_in_menu;
    }
    if (isset($args->url)) {
      $obj->url =  $args->url;
    }
    if (isset($args->desc)) {
      $obj->desc =  $args->desc;
    }
    if (isset($args->keywords)) {
      $obj->keywords =  $args->keywords;
    }
    if (isset($args->order)) {
      $obj->order =  $args->order;
    }
    return $obj;
  }
}
?>
